

#ifndef GAMETIME_H
#define GAMETIME_H

#include "LibraryFrameworkExport.h"
#include "Timer\Timer.h"

namespace CasaEngine
{
	///
	class LIBRARY_FRAMEWORK_EXPORT GameTime
	{
	public:
		GameTime();
		~GameTime();

		/// Start the timer
		void Start();

		/// 
		///  @note call Start before use End()
		/// @return the elapsed time
		void End();

		/// 
		/// @return the total elapsed time
		float FrameTime() const;

		/// 
		/// @return the total elapsed time
		float TotalTime() const;

	private:
		//float m_FirstStartTime; ///< the first start time
		//float m_StartTime; ///< the start time

		float m_ElapsedTime; ///< last frame elapsed time
		float m_TotalElapsedTime; ///< last frame elapsed time

		Timer m_Timer;
	};

}  // namespace CasaEngine

#endif //GAMETIME_H
